<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> {$sitename} / <a href="{url('diypage/index')}">自定义单页</a></div>
<div class="m10">
<div class="table-head"><a href="{url('diypage/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a><strong>编辑单页</strong></div>
<form id="form" action="{url('diypage/edit')}" method="post">
<input type="hidden" name="fid" value="{$fid}"/>   
<table class="table">
{if !$website_id}
    <tr><th>所属站点:</th><td>
<select class="select" name="website_id" datatype="*">
    <option value="">请选择所属站点</option>
{loop $website $vo}
    <option value="{$vo['id']}" {if $info['website_id'] == $vo['id']}selected="selected"{/if}>{$vo['title']} [ http://{$vo['url']} ]</option>
{/loop}
</select>
    </td></tr>
{/if}
    <tr><th>页面模板:</th><td><input datatype="*" class="input w200" name="tpl_channel" id="tpl_channel" type="text" value="{$info['tpl_channel']}" />
    <input url="{url('admin/tpl/index',array(id=>'tpl_channel'))}" title="模板选择" value="模板选择" type="button" class="button win" /></td></tr> 
    <tr><th>页面名称:</th><td><input datatype="*" class="input w200"  name="title"  type="text" value="{$info['title']}" /></td></tr>
    <tr><th>关键字:</th><td><input class="input w500" datatype="*" type="text"  name="keywords" value="{$info['keywords']}" /> </td></tr>
    <tr><th>页面描述:</th><td><textarea class="textarea w400 h50" datatype="*"  name="description">{$info['description']}</textarea></td></tr>
    <tr><th>标签内容:</th><td><textarea class="ui-editor" name="content" style="width:100%;height:300px">{htmlspecialchars_decode($info['content'])}</textarea></td></tr>
</table> 
<div class="btn fn-tac">
    <a href="{url('diypage/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a>
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','form','editor','dialog',function(){ 
    $('#form').forms({types:'post',uploads:'{url('uploads/index')}'});
    $(".win").click(function(){$(this).win();});
})
</script>